package com.example.bookmanagement.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

@Data
@TableName("users")
@Schema(description = "用户实体")
public class User {

    @TableId(type = IdType.AUTO)
    @Schema(description = "用户ID，自动增长", example = "1")
    private Long id;

    @Schema(description = "用户名", example = "admin")
    private String username;

    @Schema(description = "密码（MD5加密）", example = "21232f297a57a5a743894a0e4a801fc3")
    private String password;

    @Schema(description = "创建时间", example = "2023-10-01 10:00:00")
    private String createTime;

    @Schema(description = "修改时间", example = "2023-10-01 10:00:00")
    private String modifyTime;
}    